package com.egor.services;

import com.egor.data.entity.Order;
import com.egor.data.enums.OrderStatus;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface OrderService {
    List<Order> listAll(Pageable pageable);
    void save(Order order);
    void delete(Order order);
    List<Order> findAll(String text, OrderStatus orderStatus, Pageable pageable);
    List<Order> findByStatus(OrderStatus status, Pageable pageable);
}
